<%--
说明：时间策略 增加/修改页面

@author liuxun 2012-03-20
--%>
<%@ include file="../../common/common.jsp"%>
<%
	response.setHeader("Pragma", "No-cache");
	response.setHeader("Cache-Control", "no-cache");
	response.setDateHeader("Expires", 0);
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=GB2312" />
<meta http-equiv="Expires" content="0" />
<meta http-equiv="Cache-Control" content="no-cache" />
<meta http-equiv="Pragma" content="no-cache" />

<title><c:if test="${operationType == 0 }">新增</c:if><c:if test="${ operationType == 1}">编辑</c:if>时间策略</title>
<script src="jsp/accessctl/d_time_policy/d_time_policy_edit.js" type="text/javascript" charset="UTF-8"></script>
</head>

<body>

  <form id="opeForm" name="opeForm" method="post" action="">

    <%-- 操作类型 0录入 1修改 --%>
    <input type="hidden" id="operationType" name="operationType" value="${operationType}" /> <input type="hidden" id="time_policy_id" name="model.time_policy_id" value="${model.time_policy_id}" />
	<input type="hidden" id="node_id" name="model.node_id" value="${model.node_id}" />
	
    <table style="width: 100%; height: 100%" border="0" cellpadding="0" cellspacing="0" class="editDisplay">
      <tr>
        <td valign="top">
          <%--编辑页面名称标题表格--%>
          <table style="width: 100%" border="0" cellpadding="0" cellspacing="0" class="editCaption">
            <tr>
              <td height="30">&nbsp;</td>
            </tr>
            <tr>
              <td align="center"><font class="editCaptionTitle"><c:if test="${operationType == 0 }">新增</c:if><c:if test="${ operationType == 1}">编辑</c:if>时间策略</font>
              </td>
            </tr>
            <tr>
              <td height="5"></td>
            </tr>
          </table> <%--编辑部分表格--%>
          <table border="0" align="center" cellpadding="0" cellspacing="0" class="editTableBorder">
            <tr>
              <td>
                <table border="0" align="center" cellpadding="0" cellspacing="0" class="editMainTable">
                  <tr>
                    <td style="height: 40px;" colspan="2" class="editMainConstLabelTD">&nbsp;</td>
                  </tr>

                  <tr>
                    <td class="editMainLabelTD" align="right" style="width: 40%;">时间策略名称：&nbsp;</td>
                    <td class="editMainTD" align="left" nowrap="nowrap"><input type="text" id="time_policy_name" name="model.time_policy_name" required="true" validType="" class="easyui-validatebox  editMainText" value="${model.time_policy_name}" /> &nbsp;<span><font color="red">*</font> </span></td>
                  </tr>

                  <tr>
                    <td class="editMainLabelTD" align="right" style="width: 40%;">开始日期：&nbsp;</td>
                    <td class="editMainTD" align="left" nowrap="nowrap"><input type="text" id="start_date" name="model.start_date" required="true" readonly="readonly" validType="date" class="easyui-validatebox  editMainText" value="${model.start_date}" maxlength=19 /> <img src="<c:url value="/images/datetimepicker_css/cal.gif" />" onclick="javascript:NewCssCal ('start_date','yyyyMMdd','dropdown',false,'24',true,'future')" style="cursor: pointer" />&nbsp;<span><font color="red">*</font> </span></td>
                  </tr>

                  <tr>
                    <td class="editMainLabelTD" align="right" style="width: 40%;">结束日期：&nbsp;</td>
                    <td class="editMainTD" align="left" nowrap="nowrap"><input onmouse type="text" id="end_date" name="model.end_date" readonly="readonly" required="true" validType="date" class="easyui-validatebox  editMainText" value="${model.end_date}" maxlength=19 /> <img src="<c:url value="/images/datetimepicker_css/cal.gif" />" onclick="javascript:NewCssCal ('end_date','yyyyMMdd','dropdown',false,'24',true,'future')" style="cursor: pointer" />&nbsp;<span><font color="red">*</font> </span></td>
                  </tr>

                  <tr>
                    <td class="editMainLabelTD" align="right" style="width: 40%;">开始时间：&nbsp;</td>
                    <td class="editMainTD" align="left" nowrap="nowrap">
                    <%-- 
                      <input type="text" id="start_time" name="model.start_time" validType="" class="easyui-validatebox  editMainText" value="${model.start_time}" maxlength=19 />&nbsp;<span><font color="red">(格式 hh:mm:ss)</font> </span>
                      --%>
                      <select id="start_time" name="model.start_time" style="width: 150px">
                      	<option value=""></option>
                      	<option value="00:01:00" <c:if test="${model.start_time=='00:01:00'}">selected</c:if>>00:01:00</option>
                      	<option value="00:30:00" <c:if test="${model.start_time=='00:30:00'}">selected</c:if>>00:30:00</option>
                      	<option value="01:00:00" <c:if test="${model.start_time=='01:00:00'}">selected</c:if>>01:00:00</option>
                      	<option value="01:30:00" <c:if test="${model.start_time=='01:30:00'}">selected</c:if>>01:30:00</option>
                      	<option value="02:00:00" <c:if test="${model.start_time=='02:00:00'}">selected</c:if>>02:00:00</option>
                      	<option value="02:30:00" <c:if test="${model.start_time=='02:30:00'}">selected</c:if>>02:30:00</option>
                      	<option value="03:00:00" <c:if test="${model.start_time=='03:00:00'}">selected</c:if>>03:00:00</option>
                      	<option value="03:30:00" <c:if test="${model.start_time=='03:30:00'}">selected</c:if>>03:30:00</option>
                      	<option value="04:00:00" <c:if test="${model.start_time=='04:00:00'}">selected</c:if>>04:00:00</option>
                      	<option value="04:30:00" <c:if test="${model.start_time=='04:30:00'}">selected</c:if>>04:30:00</option>
                      	<option value="05:00:00" <c:if test="${model.start_time=='05:00:00'}">selected</c:if>>05:00:00</option>
                      	<option value="05:30:00" <c:if test="${model.start_time=='05:30:00'}">selected</c:if>>05:30:00</option>
                      	<option value="06:00:00" <c:if test="${model.start_time=='06:00:00'}">selected</c:if>>06:00:00</option>
                      	<option value="06:30:00" <c:if test="${model.start_time=='06:30:00'}">selected</c:if>>06:30:00</option>
                      	<option value="07:00:00" <c:if test="${model.start_time=='07:00:00'}">selected</c:if>>07:00:00</option>
                      	<option value="07:30:00" <c:if test="${model.start_time=='07:30:00'}">selected</c:if>>07:30:00</option>
                      	<option value="08:00:00" <c:if test="${model.start_time=='08:00:00'}">selected</c:if>>08:00:00</option>
                      	<option value="08:30:00" <c:if test="${model.start_time=='08:30:00'}">selected</c:if>>08:30:00</option>
                      	<option value="09:00:00" <c:if test="${model.start_time=='09:00:00'}">selected</c:if>>09:00:00</option>
                      	<option value="09:30:00" <c:if test="${model.start_time=='09:30:00'}">selected</c:if>>09:30:00</option>
                      	<option value="10:00:00" <c:if test="${model.start_time=='10:00:00'}">selected</c:if>>10:00:00</option>
                      	<option value="10:30:00" <c:if test="${model.start_time=='10:30:00'}">selected</c:if>>10:30:00</option>
                      	<option value="11:00:00" <c:if test="${model.start_time=='11:00:00'}">selected</c:if>>11:00:00</option>
                      	<option value="11:30:00" <c:if test="${model.start_time=='11:30:00'}">selected</c:if>>11:30:00</option>
                      	<option value="12:00:00" <c:if test="${model.start_time=='12:00:00'}">selected</c:if>>12:00:00</option>
                      	<option value="12:30:00" <c:if test="${model.start_time=='12:30:00'}">selected</c:if>>12:30:00</option>
                      	<option value="13:00:00" <c:if test="${model.start_time=='13:00:00'}">selected</c:if>>13:00:00</option>
                      	<option value="13:30:00" <c:if test="${model.start_time=='13:30:00'}">selected</c:if>>13:30:00</option>
                      	<option value="14:00:00" <c:if test="${model.start_time=='14:00:00'}">selected</c:if>>14:00:00</option>
                      	<option value="14:30:00" <c:if test="${model.start_time=='14:30:00'}">selected</c:if>>14:30:00</option>
                      	<option value="15:00:00" <c:if test="${model.start_time=='15:00:00'}">selected</c:if>>15:00:00</option>
                      	<option value="15:30:00" <c:if test="${model.start_time=='15:30:00'}">selected</c:if>>15:30:00</option>
                      	<option value="16:00:00" <c:if test="${model.start_time=='16:00:00'}">selected</c:if>>16:00:00</option>
                      	<option value="16:30:00" <c:if test="${model.start_time=='16:30:00'}">selected</c:if>>16:30:00</option>
                      	<option value="17:00:00" <c:if test="${model.start_time=='17:00:00'}">selected</c:if>>17:00:00</option>
                      	<option value="17:30:00" <c:if test="${model.start_time=='17:30:00'}">selected</c:if>>17:30:00</option>
                      	<option value="18:00:00" <c:if test="${model.start_time=='18:00:00'}">selected</c:if>>18:00:00</option>
                      	<option value="18:30:00" <c:if test="${model.start_time=='18:30:00'}">selected</c:if>>18:30:00</option>
                      	<option value="19:00:00" <c:if test="${model.start_time=='19:00:00'}">selected</c:if>>19:00:00</option>
                      	<option value="19:30:00" <c:if test="${model.start_time=='19:30:00'}">selected</c:if>>19:30:00</option>
                      	<option value="20:00:00" <c:if test="${model.start_time=='20:00:00'}">selected</c:if>>20:00:00</option>
                      	<option value="20:30:00" <c:if test="${model.start_time=='20:30:00'}">selected</c:if>>20:30:00</option>
                      	<option value="21:00:00" <c:if test="${model.start_time=='21:00:00'}">selected</c:if>>21:00:00</option>
                      	<option value="21:30:00" <c:if test="${model.start_time=='21:30:00'}">selected</c:if>>21:30:00</option>
                      	<option value="22:00:00" <c:if test="${model.start_time=='22:00:00'}">selected</c:if>>22:00:00</option>
                      	<option value="22:30:00" <c:if test="${model.start_time=='22:30:00'}">selected</c:if>>22:30:00</option>
                      	<option value="23:00:00" <c:if test="${model.start_time=='23:00:00'}">selected</c:if>>23:00:00</option>
                      	<option value="23:30:00" <c:if test="${model.start_time=='23:30:00'}">selected</c:if>>23:30:00</option>
                      	<option value="23:59:00" <c:if test="${model.start_time=='23:59:00'}">selected</c:if>>23:59:00</option>
                      </select>
                      
                      </td>    
                  </tr>

                  <tr>
                    <td class="editMainLabelTD" align="right" style="width: 40%;">结束时间：&nbsp;</td>
                    <td class="editMainTD" align="left" nowrap="nowrap">
                    <%-- 
                    <input type="text" id="end_time" name="model.end_time" validType="" class="easyui-validatebox  editMainText" value="${model.end_time}" maxlength=19 />&nbsp;<span><font color="red">(格式 hh:mm:ss)</font> </span> 
                    --%>
                    <select id="end_time" name="model.end_time" style="width: 150px">
                    	<option value=""></option>
                      	<option value="00:01:00" <c:if test="${model.end_time=='00:01:00'}">selected</c:if>>00:01:00</option>
                      	<option value="00:30:00" <c:if test="${model.end_time=='00:30:00'}">selected</c:if>>00:30:00</option>
                      	<option value="01:00:00" <c:if test="${model.end_time=='01:00:00'}">selected</c:if>>01:00:00</option>
                      	<option value="01:30:00" <c:if test="${model.end_time=='01:30:00'}">selected</c:if>>01:30:00</option>
                      	<option value="02:00:00" <c:if test="${model.end_time=='02:00:00'}">selected</c:if>>02:00:00</option>
                      	<option value="02:30:00" <c:if test="${model.end_time=='02:30:00'}">selected</c:if>>02:30:00</option>
                      	<option value="03:00:00" <c:if test="${model.end_time=='03:00:00'}">selected</c:if>>03:00:00</option>
                      	<option value="03:30:00" <c:if test="${model.end_time=='03:30:00'}">selected</c:if>>03:30:00</option>
                      	<option value="04:00:00" <c:if test="${model.end_time=='04:00:00'}">selected</c:if>>04:00:00</option>
                      	<option value="04:30:00" <c:if test="${model.end_time=='04:30:00'}">selected</c:if>>04:30:00</option>
                      	<option value="05:00:00" <c:if test="${model.end_time=='05:00:00'}">selected</c:if>>05:00:00</option>
                      	<option value="05:30:00" <c:if test="${model.end_time=='05:30:00'}">selected</c:if>>05:30:00</option>
                      	<option value="06:00:00" <c:if test="${model.end_time=='06:00:00'}">selected</c:if>>06:00:00</option>
                      	<option value="06:30:00" <c:if test="${model.end_time=='06:30:00'}">selected</c:if>>06:30:00</option>
                      	<option value="07:00:00" <c:if test="${model.end_time=='07:00:00'}">selected</c:if>>07:00:00</option>
                      	<option value="07:30:00" <c:if test="${model.end_time=='07:30:00'}">selected</c:if>>07:30:00</option>
                      	<option value="08:00:00" <c:if test="${model.end_time=='08:00:00'}">selected</c:if>>08:00:00</option>
                      	<option value="08:30:00" <c:if test="${model.end_time=='08:30:00'}">selected</c:if>>08:30:00</option>
                      	<option value="09:00:00" <c:if test="${model.end_time=='09:00:00'}">selected</c:if>>09:00:00</option>
                      	<option value="09:30:00" <c:if test="${model.end_time=='09:30:00'}">selected</c:if>>09:30:00</option>
                      	<option value="10:00:00" <c:if test="${model.end_time=='10:00:00'}">selected</c:if>>10:00:00</option>
                      	<option value="10:30:00" <c:if test="${model.end_time=='10:30:00'}">selected</c:if>>10:30:00</option>
                      	<option value="11:00:00" <c:if test="${model.end_time=='11:00:00'}">selected</c:if>>11:00:00</option>
                      	<option value="11:30:00" <c:if test="${model.end_time=='11:30:00'}">selected</c:if>>11:30:00</option>
                      	<option value="12:00:00" <c:if test="${model.end_time=='12:00:00'}">selected</c:if>>12:00:00</option>
                      	<option value="12:30:00" <c:if test="${model.end_time=='12:30:00'}">selected</c:if>>12:30:00</option>
                      	<option value="13:00:00" <c:if test="${model.end_time=='13:00:00'}">selected</c:if>>13:00:00</option>
                      	<option value="13:30:00" <c:if test="${model.end_time=='13:30:00'}">selected</c:if>>13:30:00</option>
                      	<option value="14:00:00" <c:if test="${model.end_time=='14:00:00'}">selected</c:if>>14:00:00</option>
                      	<option value="14:30:00" <c:if test="${model.end_time=='14:30:00'}">selected</c:if>>14:30:00</option>
                      	<option value="15:00:00" <c:if test="${model.end_time=='15:00:00'}">selected</c:if>>15:00:00</option>
                      	<option value="15:30:00" <c:if test="${model.end_time=='15:30:00'}">selected</c:if>>15:30:00</option>
                      	<option value="16:00:00" <c:if test="${model.end_time=='16:00:00'}">selected</c:if>>16:00:00</option>
                      	<option value="16:30:00" <c:if test="${model.end_time=='16:30:00'}">selected</c:if>>16:30:00</option>
                      	<option value="17:00:00" <c:if test="${model.end_time=='17:00:00'}">selected</c:if>>17:00:00</option>
                      	<option value="17:30:00" <c:if test="${model.end_time=='17:30:00'}">selected</c:if>>17:30:00</option>
                      	<option value="18:00:00" <c:if test="${model.end_time=='18:00:00'}">selected</c:if>>18:00:00</option>
                      	<option value="18:30:00" <c:if test="${model.end_time=='18:30:00'}">selected</c:if>>18:30:00</option>
                      	<option value="19:00:00" <c:if test="${model.end_time=='19:00:00'}">selected</c:if>>19:00:00</option>
                      	<option value="19:30:00" <c:if test="${model.end_time=='19:30:00'}">selected</c:if>>19:30:00</option>
                      	<option value="20:00:00" <c:if test="${model.end_time=='20:00:00'}">selected</c:if>>20:00:00</option>
                      	<option value="20:30:00" <c:if test="${model.end_time=='20:30:00'}">selected</c:if>>20:30:00</option>
                      	<option value="21:00:00" <c:if test="${model.end_time=='21:00:00'}">selected</c:if>>21:00:00</option>
                      	<option value="21:30:00" <c:if test="${model.end_time=='21:30:00'}">selected</c:if>>21:30:00</option>
                      	<option value="22:00:00" <c:if test="${model.end_time=='22:00:00'}">selected</c:if>>22:00:00</option>
                      	<option value="22:30:00" <c:if test="${model.end_time=='22:30:00'}">selected</c:if>>22:30:00</option>
                      	<option value="23:00:00" <c:if test="${model.end_time=='23:00:00'}">selected</c:if>>23:00:00</option>
                      	<option value="23:30:00" <c:if test="${model.end_time=='23:30:00'}">selected</c:if>>23:30:00</option>
                      	<option value="23:59:00" <c:if test="${model.end_time=='23:59:00'}">selected</c:if>>23:59:00</option>
                      </select>
                    </td>
                  </tr>

                  <tr>
                    <td class="editMainLabelTD" align="right" style="width: 40%;">星期：&nbsp;</td>
                    <td class="editMainTD" align="left" nowrap="nowrap">
                    
                    	<input type="checkbox" id="week1" name="model.week" value="1" <c:if test="${fn:contains(model.week, '1')}">checked="checked"</c:if> />星期一&nbsp;
                    	<input type="checkbox" id="week2" name="model.week" value="2" <c:if test="${fn:contains(model.week, '2')}">checked="checked"</c:if> />星期二&nbsp;
                    	<input type="checkbox" id="week3" name="model.week" value="3" <c:if test="${fn:contains(model.week, '3')}">checked="checked"</c:if> />星期三&nbsp;
                    	<input type="checkbox" id="week4" name="model.week" value="4" <c:if test="${fn:contains(model.week, '4')}">checked="checked"</c:if> />星期四&nbsp;
                    	<input type="checkbox" id="week5" name="model.week" value="5" <c:if test="${fn:contains(model.week, '5')}">checked="checked"</c:if> />星期五<br />&nbsp;
                    	<input type="checkbox" id="week6" name="model.week" value="6" <c:if test="${fn:contains(model.week, '6')}">checked="checked"</c:if> />星期六&nbsp;
                    	<input type="checkbox" id="week7" name="model.week" value="0" <c:if test="${fn:contains(model.week, '0')}">checked="checked"</c:if> />星期日
                  </tr>
                  <tr>
                    <td class="editMainLabelTD" align="right" style="width: 40%;">时间策略描述：&nbsp;</td>
                    <td class="editMainTD" align="left" nowrap="nowrap">
                    	<textarea name="model.time_policy_desc" rows="3"  style="width:80%" >${model.time_policy_desc}</textarea> 
                  </tr>

                  <tr>
                    <td class="editMainConstTD" colspan="2">&nbsp;&nbsp;说明：带<span><font color="red">*</font> </span>的项目是必须填写项</td>
                    
                  </tr>
                  <tr>
                    <td style="height: 40px;" colspan="2" class="editMainConstLabelTD">&nbsp;</td>
                  </tr>
                  <tr>
                    <td colspan="2" class="editMainBottomTD">&nbsp;
                      <div style="text-align: center; padding: 5px;">
                        <a href="javascript:void(0)" id="okBtn" icon="icon-save" class="easyui-linkbutton">保存</a> <a href="javascript:void(0)" id="cancelBtn" icon="icon-cancel" class="easyui-linkbutton">取消</a>
                      </div></td>
                  </tr>
                </table></td>
            </tr>
          </table></td>
      </tr>
    </table>

  </form>

</body>
</html>